package cn.tedu.hw_two;

public class Test1 {
public static void main(String[] args) {
	A a=new Z();
	a.eat();
	a.name="jack";
	System.out.println(a.name);
	System.out.println(a.AGE);
}
}
abstract class A{
	String name="л";
	public static final int AGE=10;
	abstract public void eat();
}
class Z extends A{
	@Override
	public void eat() {
		System.out.println("chi");
	}
}